using System;

namespace WinLOAtest.Models
{
    /// <summary>
    /// 账号信息模型
    /// </summary>
    public class Account
    {
        /// <summary>
        /// 账号ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 账号名称
        /// </summary>
        public string AccountName { get; set; }

        /// <summary>
        /// 功能权限字符串（20位二进制字符串）
        /// </summary>
        public string FeatureString { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        public Account()
        {
            CreateTime = DateTime.Now;
            UpdateTime = DateTime.Now;
            FeatureString = "00000000000000000000"; // 默认20个0
        }
    }
}
